adding api module - adding better handling of invalid puzzles