implementing collision detection
adding collision detection
formatting