player hitting and moving working