Button click support added

Clicking the buttons will now output either "QUIT" or "RESET" into standard out. Also fixed the button box drawing function to draw from the top left corner rather than bottom left.