Collision Detection JavaScript Tutorial Part 1