added a controller for players