Template fixes (added global lang attribute, duplicate logo id)
Fixes, langvars, template
Added stalemate check, fixed checkmate check (again, duh)