Improved physics and added debug rendering system