Made game into a class