fixed up some of the compile errors, but raycasts aren't working properly yet?