fixed tick function and made tilesize 64