PUZZLE FINALLY WORKING