Added:
- Pause option
- Logic
- transition calculation
Finished logic and removed an error when calculating the transition
Code cleanup
Code cleanup
Code cleanup
Code cleanup
Changed initial state
Changes with the offset