implemented PlayerBin class