updated grid canvas
updates on grid
fix bug on getMax method
fix on current state