Added function to game class