Change drawing algorithm to Bresenham's algorithm