Fixed the shapeContaining bug, I wasn't iterating values inside of the loop with [0]