adds proper grid drawing and coordinate calculations