private void quaff()
     {
        Grid<GridActor> gr = getGrid();
        Location loc = getLocation(); // stores the current location of player
        Location next = loc.getAdjacentLocation(0); // it chooses up by default
        
        if(Greenfoot.isKeyDown("right") || Greenfoot.isKeyDown("l")) // player chooses right
        {
            next = loc.getAdjacentLocation(90); // gets actor to the east
        }
        if(Greenfoot.isKeyDown("down") || Greenfoot.isKeyDown("k")) // player chooses down
        {
            next = loc.getAdjacentLocation(180); // gets actor to the south
        }
        if(Greenfoot.isKeyDown("left") || Greenfoot.isKeyDown("h")) // player chooses left
        {
            next = loc.getAdjacentLocation(270); // gets actor to the west
        }

        GridActor neighbor = gr.get(next);
        if(neighbor instanceof Fountain)
        {
            setText("You drink from the muddy water.\n");

            // chooses your "reward"
            double prob = Math.random() * luck;

            if(prob < 0.2)
            {
                addToText("The water goes up your nose and you lose 1 hp!\n");
                takeDamage(1);
            }
            
            getWorld().addObject(getMsgbox(), 36, 5); // display at coordinates of your choice 
        }

     }