started adding ray cast and collision code