Changed how player is declared.