added time argument to getPlayer method