Logic — sort pictures into boxes