public Piece(Square location, ChessColour colour) { this.location = location; this.colour = colour; location.setOccupiedBy(this); }
public void move(Square newLocation) { location.setOccupiedBy(null); newLocation.setOccupiedBy(this); location = newLocation; }