This is a front end to a game - the idea is to get the user's name and ask them if they want to play, then validate the response. If it is a Y or N, it will take them through to the game or end it respectively. If it is an invalid response they will be asked again.