Adds touch button functions

And some nifty rect functions for flipping it on the screen, or flipping
its x and y/width and height