package chessGame;
import java.util.*;

public class Main {

	
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		ChessMonitoringSystem chessMonitoringSystem=ChessMonitoringSystem.getInstance();

                System.out.println("Please choose a mode (1- Classic 2- Scoring): ");
                int mode=in.nextInt();
                in.nextLine();
		
		int numOfPlayer=2;
		ChessPlayer[] players=new ChessPlayer[numOfPlayer];
		for (int i=0;i<numOfPlayer;i++){
			System.out.print("Player "+i+1+" name: ");
			String pName=in.nextLine();
			ChessPlayer player=new ChessPlayer(pName); //constructor : ChessPlayer(String playerName)
			players[i]=player;
		}
//		chessMonitoringSystem.initializeChessBoard();
		chessMonitoringSystem.initializeChessPieces(players[0],players[1]);
		chessMonitoringSystem.showAllChessPiecesPosition();
		int j=0;
		do{
			System.out.println("Please enter the position of the chess pience you want to move: ");
			String oldPos=in.nextLine();
			System.out.println("Please enter the new position: ");
			String newPos=in.nextLine();
			chessMonitoringSystem.moveChessPiece(players[j],oldPos,newPos);
			chessMonitoringSystem.showAllChessPiecesPosition();
			if (j==0)
				j++;
			else
				j--;
		}while(!chessMonitoringSystem.isKingCaptured());   //Check if King is captured
		chessMonitoringSystem.getGameResult(mode);
		
		in.close();
		
		
	}

}

@@ -229,24 +229,16 @@
 e();%0D%0A%0D%0A
-        
         
@@ -304,32 +304,24 @@
 ring): %22);%0D%0A
-        
         int 
@@ -340,24 +340,16 @@
 Int();%0D%0A
-        
         
@@ -607,57 +607,12 @@
 Name
+,i
 );
- //constructor : ChessPlayer(String playerName)
 %0D%0A%09%09

Add parameter 'id' for chessPlayer