In a game with two or more people, one person should be flashing the hallway whenever an animatronic is not attacking the office, as it will discourage Foxy from moving to an attack position. For singleplayer, it is only necessary to flash the hallway to get Foxy out of the hallway, when he's there. It may also help to keep an eye on Withered/Toy Freddy as they stay in the office for the longest amount of time.