I am working on implementing an eraser tool for a paint style app using Kotlin. I have the following function which so far just changes whatever i touch to black.