An explorer goes on an exposition in the jungle. He sets up camp in the middle of the jungle. The next morning he sees something with a head and a tail, but he is not afraid. What did he see in his bag?
You are provided with a grid (as shown in the picture). Can you fill the squares with numbers 1-8 in a manner that none of the two consecutive numbers are placed next to each other in any direction (vertically, horizontally or diagonally?)