If at first you don't succeed, test specific areas. If you still can't find the problem...spam beep codes and print statements until you find it.