Added pit

Added pit
Fixed being able to put a wall in front of a door
speeds are now calculated with ticks instead of frames