Fixed collision detection, added tests, ambiturning, build config