refactoring gamelogic adding active state of players