for (int y = 0; y < MAZE_HEIGHT; y++) { for (int x = 0; x < MAZE_WIDTH; x++) { if (x && y == mazePlayerX && mazePlayerY) { System.out.println(PLAYER); }else if (x && y == mazeExitX && mazeExitY) { System.out.println(EXIT); }else { System.out.print(FLOOR); } } System.out.println(); }