public int click(Unit selected)
    {
        if(!disabled)
        {
            switch(iD)
            {
                case 0:
                    selected.showAttack();
                    break;
                case 1: case 2: case 3: case 4:
                    System.out.println(text + " was clicked. Not yet implemented.");
                    break;
                case 5:
                    selected.cancelMove();
                    System.out.println("Cancel button was clicked");
                    break;
                case 6:
                    selected.done();
                    System.out.println("Wait button was clicked for unit on (" + selected.getX() + ", " + selected.getY() + ")");
                    break;
                case 7:
                    Game.newTurn();
                    System.out.println("Moves were reset");
                    break;
                default:
                    System.out.println(text + " was clicked. Not a working button.");
                    break;
            }
            pressed = false;
            return iD;
        }
        return -1;
    }