Rework game loop logic to fix speed problems
Fix bug: never updating on long render
Fix a small mistake
Merge pull request #192 from gmorenz/fix-game-loop

Fix game loop