solves part of the puzzle