Fix constrain code for fixed points and increase gravity