Graphics and music separated, textdrawing function added