Thank you so much for getting me an answer in 15 minutes to something I'd already spent hours on. You have inspired me to start using strict and warnings ... well my code is around 600 lines already and I should be able to wrap it up now ... I'll use those on my next project.