implementation of paper and pencil racetrack game