Replaced MAX_SCORE with MAX_MOVES