public static Game createGame(Game myGame, Move m) {
		// TODO Auto-generated method stub
		Board testBoard = new Board(false);
		Piece thePieceMoving = myGame.getPiece(m.getPreviousLocation());
		Point whereToMove=m.getCurrentLocation();
		boolean theTurn = myGame.isWhitesTurn();//check if the new board set up puts the currently moving king in check
		char[] theCharArray = myGame.toString().toCharArray();
		theCharArray[whereToMove.x+8*whereToMove.y]=theCharArray[thePieceMoving.myLocation.x+8*thePieceMoving.myLocation.y];//shift the chosen piece to the new potential position
		theCharArray[thePieceMoving.myLocation.x+8*thePieceMoving.myLocation.y]=" ".charAt(0);//no longer a piece there

		//sets up the board as if the selected piece was moved to point p
		for(int i = 0 ; i < theCharArray.length;i++)
		{
			if(theCharArray[i]!=" ".charAt(0))
			{
				Point location = new Point();
				location.x=i%8;
				location.y=i/8;
				Piece.setPieceOnBoard(theCharArray[i], location, testBoard);
			}
		}
		return new Game(testBoard, theTurn);
	}