Very minor refactoring

1. Changed method name CheckIsThePosiotionValid to IsPositionValid.
2. Changed  else if (playerMove != "end") to  else if (playerMove !=
"exit") to correspond to the while condition.