improved walking. added basic collision detection