@Override
	public HashSet<Square> calcMoves(ChessBoard board) {
		moves = new HashSet<Square>();
		for(int i = 1; checkMove(board.getSquare(x+i, y)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x-i, y)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x, y+i)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x, y-i)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x+i, y+i)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x+i, y-i)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x-i, y+i)); i++) {}
		for(int i = 1; checkMove(board.getSquare(x-i, y-i)); i++) {}
		return moves;
	}