Made cardinal directions (d_up, d_down, etc.) all upper-case (D_UP, D_DOWN, etc.)