Added a spatial hash to improve collision detection speed