Extracted collision between Mario and any kind of Platform surface into a private method.