Fix printing method in Demo.java. Solve task for ChessOrder.