public void renderTiles(Graphics2D graphics2D) {

        graphics2D.setColor(Color.BLACK);
        for (int i = 0; i <= 40; i++) {
            for (int j = 0; j <= 24; j++) {

                if (tiles[i][j] == Tiles.WALL) {
                    graphics2D.setColor(Color.BLACK);
                    graphics2D.fillRect(i * 20, j * 20, 20, 20);
                } else if (tiles[i][j] == Tiles.WALLCOLLIDE) {
                    graphics2D.setColor(Color.RED);
                    graphics2D.fillRect(i * 20, j * 20, 20, 20);
                } else graphics2D.drawRect(i * 20, j * 20, 20, 20);
            }
        }
    }