added bugs, improved collision with door