Finally got draw func to work. Now I remember why I hate arrays...