written function kickPlayer