tweaked some stuff
- found out that the program is unstable when compiled with full optimizations :(