add hitmap class
added a few comments for HitMap
check for collisions