made board.state private, added getter/setters for spaces