The point is to keep all of Inwood outside the city limits , part of the deal struck when New York City absorbed Brooklyn , the Bronx , Staten Island and most of Queens in 1898 , leaving three eastern towns to become the new Nassau County .