Paper is your friend.
Making notes of the relevant constraints will help.
As will making notes of your location across different times.
With some nice diagrams, you should be able to avoid careless failures.