implemented box collision test
fixed stupid bugs caused by lack of attention
added some non-functional collision detection routines
added triangle-ray intersection detection