implemented grid map in onDraw