add addPuzzle() method on APIs.java