Maze.java
public boolean hasLost()
    {
        for (Monster m : monsters)
        {
            if (hasMonster(getPlayer().getX(), getPlayer().getY()))
            {
                return true;
            }
        }
        return false;
    }
/**
     * @return if the player and monster are in the same spot.
    */
@return if the player and monster are in the same spot.
@return if the player and monster are in the same spot .
public boolean hasLost()
    {
        for (Monster m : monsters)
        {
            if (hasMonster(getPlayer().getX(), getPlayer().getY()))
            {
                return true;
            }
        }
        return false;
    }
public boolean hasLost ( ) { for ( Monster m : monsters ) { if ( hasMonster ( getPlayer ( ) . getX ( ) , getPlayer ( ) . getY ( ) ) ) { return true ; } } return false ; }
@return if the player and monster are in the same spot.
@return if the player and monster are in the same spot .