added functions for locating mouse position on the gameboard