Added basic flag mechanics