First working commit... Quick and dirty
Optimization is heavly needed aswell as error checking
Stop button isn't implmented