Added in basic ray casting code