It is implemented in pure JavaScript without the use of third-party libraries. There was also a condition - not to use HTML. Now the design is being refined with the subsequent update of the application.
Now this is a fully working game that can be played in any browser and on any device)