Stack with Last-In-First-Out (LIFO) principle
Adds a gold brick to the top of the stack. The stack size increases by one. Cannot push if stack is at limit.
Removes the top gold brick from the stack. The stack size decreases by one. Cannot pop if stack is empty.
Returns the top gold brick without removing it. Shows the most recently added brick.
The maximum number of bricks the stack can hold. Visual indicator shows when stack is near or at limit.