Added fog of war and refactored a bit.