fixed physics bug and added avatar shadow