fixed a bug in random map generation. entities other than wall could attempt to place themselves on the end of the map