moved cpu method into game class