Moved synchronized block to draw method from drawTerrain