Main part of menu drawing code implemented