updated javadocs, and added in numPlayers as parameter