edited by YC - I have a problem with resetBGColor() and
setRayFromStartToEnd()