Added MainMenu class and added more functions for Button class