@Override
    public void render(Drawer drawer) {
        renderMap(drawer);

        int mouseX = Mouse.getX();
        int mouseY = Display.getHeight() - (Mouse.getY());

        Point2D<Integer> point2D = null;

        for (int x = 0; x < map.length; x++) {
            for (int y = 0; y < map[0].length; y++) {
                if (mouseX >= ((x * tileSize) + offsetX) && mouseX < (((x + 1) * tileSize) + offsetX)) {
                    if (mouseY >= ((y * tileSize) + offsetY) && mouseY < (((y + 1) * tileSize)) + offsetY) {
                        point2D = new Point2D<>(x, y);
                    }
                }
            }
        }


        if (Mouse.isButtonDown(0)) {
            map[point2D.getX()][point2D.getY()] = 0;
        }
        if (Mouse.isButtonDown(1)) {
            map[point2D.getX()][point2D.getY()] = 1;
        }

    }