added bitmasks to represent turn actions