Added collision detection & response

And added cotire for faster compiling