The program model is yours. It is not for us to say if its a bad Idea or not. Also unless the problem is an obvious one of syntax or conception, nobody else but you will be able to find the error.
Run you program in Debug, and put loads of checks on the variables you expect are to blame. Everyone learns more by finding their own mistakes, and in this sort of case you are the only one who could find them anyway.
Run you program in Debug, and put loads of checks on the variables you expect are to blame. Everyone learns more by finding their own mistakes, and in this sort of case you are the only one who could find them anyway.