Change map to be boolean and 'right-way up'

It makes it easier to read when you can refer to the map as map[x,y].