isMoveCorrect refactored