First working version

It sorts!
minor code cleanup

moved around some variables and made a bunch of functions private
Added mode chooser
Added brightness slider

gif like pixelsorting goodness
Added pixel sorting over time