add cache file
remove unneccesary state
add randomization time tracker
remove autogenerated comments and add state transitions for missing states
also color of background changes