Finding slope given the graph of a line on a grid