html related files and collision detecting

add html related files and update collision detecting algorithm