Sprite GUI working, all functions added to main