Cycles and game loop
Merge pull request #3 from Archon-/Cycles-tests-and-fixes

Cycles and game loop