Added main menu, fixed some glitches