I made a collision detection for a tiled map. It works just fine. It first checks in which tiles the player is at and after checks if the tiles around the tiles where the pl