Committing with the same bug. Renamed variables in update_buffer (THIS IS WHY WE
DO NOT MIX row,col AND x,y!) and added some print statements.