Refactor entity connection code. Fix player sometimes not being able to roll through breakable materials.