Fixed the purchase function! Gotta find out how to add chairs to tables though. Also created a main page!