hit detection and color change improvement