added week 3B raycasting / instantiation code