Made a working prototype for finding positions for buttons in the menu