added win condition, fix to prevent map editor residual content from
leaking to newly loaded boards