Added anti-bhop option to physics.cfg and optimized code