Updated game loop logic
Merge branch 'master' of https://github.com/cheinrich09/Lua-Project