Fix error in isPossibleMove and isValidMove