public void readCommandsFromFile(Path filePath, Path moveFilePath) throws IOException {
        try {
            CommandParser parser = new CommandParser();
            buff = Files.newBufferedReader(filePath, Charset.defaultCharset());
            do {
                String line = buff.readLine();
                Command command = parser.parseCommand(line);
                if (command.getTypeCommand().equals(CommandType.PLACEMENT)) {
                    placePiece(command);
                }

            } while (buff.ready());
        } catch (Exception e) {
            System.out.println("File not found or doesn't exist!");
            e.printStackTrace();
        } finally {
            buff.close();
        }

        try {
            CommandParser parser = new CommandParser();
            buff2 = Files.newBufferedReader(moveFilePath, Charset.defaultCharset());
            do {
                String line = buff2.readLine();
                Command command = parser.parseCommand(line);

                System.out.println(theBoard.printMoves(theBoard.currentTurnColor()).toString());

                if (command.getTypeCommand().equals(CommandType.MOVE)) {
                    makeMove(command);
                } else if (command.getTypeCommand().equals(CommandType.CAPTURE)) {
                    capturing(command);

                }

            } while (!theBoard.isInCheckmate(theBoard.currentTurnColor()) && buff2.ready());

        } catch (Exception e) {
            System.out.println("File not found or doesn't exist!");
            e.printStackTrace();
        } finally {
            buff2.close();
        }


    }