for (int y = 0; y < Square.getSize(); ++y) {
for (int x = 0; x < Square.getSize(); ++x) {
Square square = Square.getSquare(x, Square.getSize() - (y + 1));
ColorPiece colorPiece = squares.get(square);
if (colorPiece != null) {
for (int y = 0; y < Square.getSize(); ++y) {
for (int x = 0; x < Square.getSize(); ++x) {
Square square = Square.getSquare(x, Square.getSize() - (y + 1));
ColorPiece colorPiece = squares.get(square);
if (colorPiece != null) {