Started working on gui.

I need help with reflection and threading. Also, graphics hate being
drawn when there is a while loop following for some reason?