Added states for win and lose, cleanup in render code and separate debug printouts