Tooltip enhancement

Made tooltips unable to go offscreen. Instead they swap direction to
draw.
Also started work on a menu system