Change the way events are added to be more versatile.
Get mouse board coordinates based on the current offsetWidth and boardSize.