Added main menu and fixed texture system