public void run(Game game) {
		boolean playOn=true,MoveColor=true;
		int player1Score=0, player2Score=0;
		Scanner userInput = new Scanner(System.in);
		while (playOn) {
			System.out.println("Please enter the x-coordinate of target square");
			userInput = new Scanner(System.in);
			int targetX= userInput.nextInt();

			System.out.println("Please enter the y-coordinate of target square");
			userInput = new Scanner(System.in);
			int targetY= userInput.nextInt();

			boolean color = game.chessBoard.board[targetX][targetY].occupant.color;
			Piece piece = game.chessBoard.board[targetX][targetY].occupant;

			while(!piece.validMove(targetX,targetY,color)){
				
				System.out.println("Invalid Move, please re-enter the x-coordinate of target square");
				userInput = new Scanner(System.in);
				targetX= userInput.nextInt();

				System.out.println("Please re-enter the y-coordinate of target square");
				userInput = new Scanner(System.in);
				targetY= userInput.nextInt();
			}
			
			Game previousGame= game;
			piece.move(targetX, targetY, game.chessBoard); //Actually moves the piece to target
			
			System.out.println("If you want to undo move, press 1");
			userInput = new Scanner(System.in);
			int undoNumber = userInput.nextInt();
			
			if(undoNumber==1){
				undo(previousGame);
			}
			
			if(MoveColor){
				if(game.whiteKing.isCheckmate(targetX, targetY, color)){
					player2Score++;
				}
			}
			else{
				if(game.blackKing.isCheckmate(targetX, targetY, color)){
					player1Score++;
				}
			}
			
			if(staleMate(game)){
				player1Score++;
				player2Score++;
			}
			
			System.out.println("Do you want to replay? Press 1 to replay, 0 to exit ");
			userInput = new Scanner(System.in);
			int exitNumber =  userInput.nextInt();

			if(exitNumber == 0){
				System.out.println("The final scores are -> Player 1 : "+player1Score+" and Player 2 : "+ player2Score);	
				playOn=false;
			}
		}
	}