public static boolean canCastleRight(GameBoard board, int color, int col, int row)
	{
		if (col + 2 >= GameBoard.WIDTH) // out of bounds
			return false;
		
		if (!allowedCastling(board, color, col, row, true)) {
			return false;
		}
		
		if (board.isEmpty(Position.get(col + 1, row)) && board.isEmpty(Position.get(col + 2, row))
				&& !isUnderAttack(board, Position.get(col, row), Piece.getOppositeColor(color), true)
				&& !isUnderAttack(board, Position.get(col + 1, row), Piece.getOppositeColor(color), true))
		{
			return true;
		} else
		{
			return false;
		}
	}