Ben Foakes says England need to work through the difficult conditions in the fourth tests against India.