Added game logic for timer timeout and for game won/debugged some small syntax errors