Made progress on the puzzle logic sequence.

Created the ability to choose a piece and change its state, and to test
whether all pieces have the correct state, therefore solving the puzzle.