Can now infer starting x position

Added code to infer where to center the grid