Arduino UNO trouble at executing two actions