Code cleanup.
Fix window opened detection.
Fix minimap size array detection.
Update version.
Improve entity array detection.