Same happens with me !! Try to make some flowchart on paper with a pencil or on any programm it helps to think and see clear ur code. Also try some beer or a coffe for a change :P xaxaxa

Regards Kostas.