Added some collision physics code