Suggestion number one: reformat your code. Formatting isn't there just to make your code look pretty, it's there to help you debug it at a glance, to see at a glance where blocks begin and where they...