Refactor some LFHD code and do some engine wide code formatting

Signed-off-by: MHesham <mhesham.fcis@gmail.com>
Make solution has 0 warnings, except for the PDB warning for BWAPI

Signed-off-by: MHesham <mhesham.fcis@gmail.com>