Added canMove() method for the King