private boolean moveIfLegal(Point thePoint) {
		// TODO Auto-generated method stub
		boolean moveWorked=false;
		if(!this.wouldBeInCheck(thePoint))//if the selected move wouldn't move it into check, then lets move it
		{
			Piece pieceTryingToMove = chosenPiece;
			Point previousLocation =chosenPiece.myLocation;
			moveWorked=this.movePiece(thePoint);

			//if the move worked, then that was the previous move
			if(moveWorked)
			{
				pieceTryingToMove.wasMoved();
				lastMove = new Move(previousLocation,thePoint);
			}
		}
		return moveWorked;
	}