Mouseville.java
public boolean hasWon()
    {
        if(grid[p.getX()][p.getY()] != null) {
            if(grid[p.getX()][p.getY()].getLetter().equals("X")) {
                return true;
            }
        }
        return false;
    }
/**
     * Has the elephant reached the exit yet.
     * @return true if the elephant has reached the exit.
     */
Has the elephant reached the exit yet.
@return true if the elephant has reached the exit.
Has the elephant reached the exit yet . @return true if the elephant has reached the exit .
public boolean hasWon()
    {
        if(grid[p.getX()][p.getY()] != null) {
            if(grid[p.getX()][p.getY()].getLetter().equals("X")) {
                return true;
            }
        }
        return false;
    }
public boolean hasWon ( ) { if ( grid [ p . getX ( ) ] [ p . getY ( ) ] != null ) { if ( grid [ p . getX ( ) ] [ p . getY ( ) ] . getLetter ( ) . equals ( "X" ) ) { return true ; } } return false ; }
Has the elephant reached the exit yet.
Has the elephant reached the exit yet .