Refactored game to remove input