private void checkUpgradePawn(Piece thePiece)
	{
		if(thePiece instanceof Pawn)
		{

			if(thePiece.getY()==7||thePiece.getY()==0)//then the piece is at the end of the board and needs to be updated
			{
				this.upgradePawn(thePiece);
			}

		}
	}