* @Post: No changes
	 * @Return: Returns all pieces of the given color that can attack the given point
	 */
	ArrayList<Piece> piecesThatCanAttack(Point p, boolean color)
	{
		ArrayList<Piece> thePieces =myBoard.getPieces(color);
		int indexToCheck=0;
		while(indexToCheck<thePieces.size())
		{
			if(thePieces.get(indexToCheck).possibleMoves().contains(p))//this piece can attack the given point
			{
				indexToCheck++;
			}else
			{
				thePieces.remove(indexToCheck);//cant attack the point, get rid of it
			}
		}
		return thePieces;

	}