created constructor in game.java