bug fix for switching player entities and foreground tiles
doors