refactored tile collision detection