Ported everything to a game class