Implementation of the "Trouble" Game