Complete basic game engine