Update ChainShape.java

Overloaded the createLoop() method to create a loop directly from an array of floats.