Change array to SplQueue, implement server/client difference