Added a statepattern for Alive, Dead, Idle in GameObject