Sure, I can help you convert your program into a game using JavaScript. Below is an example of a simple game implemented as a single HTML file, enclosed within script tags. The game is based on pictograms and can be played on a smartphone.
Pictogram Game
In this game, a set of pictograms is randomly shuffled and displayed on the game board. Each pictogram is represented by a clickable element. When a pictogram is clicked, its background color changes to green and its text color changes to white. You can add additional functionality or customize the game further based on your requirements.