improving memory malloc

changes on some *objct[50], changed them to ** and used malloc, to be
able to free that memory.
still same problem on draw