last night work

fell asleep on the computer.
dam corrupted heap error is still there
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
more malloc improvements

still same problem on attaching objects to scene a second time.
or
detaching objects from scene!!
drawing error resolved

Problem was on copy object().
now is using two object**, to make a copy(return) and keep the
info(objects inside cubie):
now a second call to draw is working correctly