implemented game logic isMoveOk