Correctly calculating pointer grid position