adding jump and gravity effects