Changed logic for registering layers:
- TouchManager.layers,
- Layer -> EndOfFrame,
- TouchManager -> NextFrame.