cleaned up puzzles/inverter