@Override
    public void mousePressed(MouseEvent e) {
        //if (spawnMenuItem.isEnabled()) {
        int newX = (int) Math.round(e.getX() / (double) game.getPixelSize());
        int newY = (int) Math.round(e.getY() / (double) game.getPixelSize());
        if (game.isInBounds(newY, newX)) {
            erase = game.getEntity(newX, newY) != null;
        }
        repaint();
        //}
    }