templated for multiplayer mode