added State.cpp Constructor and trying to fix several isssue