a simple html game of time and resources