Trump: factored out code from Player.js #28