puzzle basic logic completed