Change min and max to use left and top. Added in bottom and right bounding functions also. Pong example is pretty well functional. Might need to clean up some of the source