You aren't setting the CurLocation variable. You don't need event 3. In event 2 replace the 'Get item' with CurLocation = LocalStorage.ItemValue.
You should add 'On item missing', and set CurLocation = 1, and remove event 7.
LocalStorage takes time to read. You shouldn't really do anything that relies on CurLocation until either 'exists' or 'missing' is triggered.