Handles init and finish of the game