Added function to the game