Improved isBroken() performance

isBroken() is not called after it has been established that the triangle
has been broken
Updated debug and release build
Fixed bug with isBroken() and updated builds