Easy win: Get the gun, then exit the maze and continue going backwards from the start. Eventually you will get to the last room, and you won't have had to go through any of the rooms! Shoot the boss where he doesn't have the spikes, and watch which direction his eyes go; that is the next direction he will travel.