refactoring game over state
refactor State function names
log edit