Implemented fall damage; several bug fixes