Added call to UpdateState whenever state changes.
Merge branch 'master' of https://github.com/Ha1fDead/comsci472_graphics.git