added movement and rudimentary ray casting to guard