fix edge case when out of range move is considered a valid move