Door lock tiling

Added math involved to correctly change doors to walls when locked, and
back to doors when unlocked