started development of collision and reformatted code
inserted collision but not tested