Fixed bugs that were preventing the game from running.