Changed the activePlayer method. Dont know if good.