checking platform collision