functionality for beginning the game