added tests to event handling for key presses and added render function to game_class