Proper game loop and matching string to the moves.