Improvements to the game engine