Adds comments and makes a collision function