Moved variable initialization to constructor in problem.h and state.h