moves player logic to players controller