Multiplayer statemachine implemented.