Added player logic.