You are a hacker who needs to navigate through a complex network of spinning glyphs to retrieve hidden data. The glyphs are encoded with secret messages that can only be deciphered when facing the correct direction. Using your coding skills, you must rotate the glyphs to match the correct orientation and decode the messages.