Added class to get input and class to output game state