Polshed the timer function.

Now, raw materials are withdrawed when the "produce"-button is clicked.
The timer runs for the given amount of seconds.
When the progress bar is filled, the pallet is created.