move GetHex function to BitGrid unit

GetHex is a utility function that belongs with BitGrid