Starts to work...

Fixed a really silly bug where I forgot the break; statements in my
switch for the act function
It runs!

Fixed a bug in the comparitor.