add gravity fixed collision side detection