more changes, added a premature Collision function and modified the way it writes to the binary file