fixed an out of range error

doesn't throw an out of range error if the user hasn't declared(or none active) players.
Merge pull request #154 from Ollybest/patch-5

fixed an out of range error