please include function mechPlay_on. static void mechPlay() { mechPlay_on = true; }