Fixed grid line issue and refactored main code

Fixed the grid line offset and removed extraneous code. Also added an option to toggle grid lines on and off by pressing 'l'. Removed anything to do with translation.