Added debug print methods for move flags and piece flags, various bug fixes and minor cleanup of piece flags embedded in move flags