still working on the correct pointing and coordinate clicks:
- introduced a new Debug class to debug the code visually (canvas coordinate grid and console log output)
- changing the coordinate index calculation code from floating numbers to more precise modulo operations