working on puzzle solver