pieces queue implemented