Base code for fog of war