@Override
    public void mouseClicked(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(newX, newY)) {
            if (erase) {
                game.removeEntity(newX, newY);
            } else {
                game.placeEntity(newX, newY, spawnID);
            }
        }
        repaint();
        //}
    }