updated working

still has bug of getting stuck in ub walls