How I created a stack guessing tool using Next.js