finished up the prisoners hats puzzle