Continuing to debug skeletal animation.

Fixed a significant bug in Material.java.
Also improved LoopingThread and Engine