Sure! Here's a complete implementation of the game you described, using JavaScript and HTML:
This HTML file sets up a canvas element, where 100 squares are randomly created and move around. If you touch any of the squares, it will change its direction. The squares will keep moving and throwing "boomerangs" as long as the game is running. The game is optimized for smartphone operation and uses pictograms to represent the squares.