collision detection was not accounting for structure position