You click the cookie and it will give you 1 cookie and once you have enough you click the shop button and you can purchase items to improve your cookie production. The red box is used to get back to the Bakery. Remember the upgrades you have the more cookies you get every second. More items coming soon! Also be aware you have to take your cursor off the item you want to buy before you by the next one.
I got my ideas from the Dashnet cookie clicker on Google and thx to cmrss2 and my helper arzacroz he has a version as well check it out at Cookie Clicker Smash!! on scratch.