Implemented basic raycast