@Corion
It actually does have 17 lines, and more, but i've been scolded for posting to much code, so I only posted the relevant code. I figured the error was explicit enough anyway. Anyway, thanks... chomp is the solution, forgot about that. And thanks for the other tips guys