Added error checking on playerNum.