Created Game class and moved some stuff from main into it