mouse coordinates to array coor conversion added