Moving some detection stuff out of PlayerController