Thanks! I knew it would be something simple like that. I didn't have the semicolon after the main while loop, I dont know why I put it after the nested loops.