Added player to main code