Optimized the checking of the floor tiles a bit

Since only the top layer of tiles can ever be hit, we only need to check
those for collisions