@Override
    public void act() {
        if (Greenfoot.isKeyDown("enter")) {
            setBackground("achtergrondSelectie.png");
            nextMenu = true;
        }
        
        if (nextMenu == true) {
            if (Greenfoot.isKeyDown("1")) {
                Greenfoot.setWorld(new FloodWorld(Player.PlayerType.POLICE));
                return;
            }
    
            if (Greenfoot.isKeyDown("2")) {
                Greenfoot.setWorld(new FloodWorld(Player.PlayerType.GENIUS));
                return;
            }
    
            if (Greenfoot.isKeyDown("3")) {
                Greenfoot.setWorld(new FloodWorld(Player.PlayerType.CITIZEN));
                return;
            }
        }
    }