class Opponent
{
public Opponent(Location startingLocation)
{
hidingLocation = startingLocation;
random = new Random();
}
private Location hidingLocation;
private Random random;
public bool Check(Location location) => location == hidingLocation;
private bool DoIGoThroughDoor() => random.Next(2) == 1;
public void Move()
{
if (hidingLocation is IHasExteriorDoor)
{
if (DoIGoThroughDoor())