changed how the crate block detects the direction of the player to a much more reusable, accurate, and elegant system