Cocos2D implementation of the Single-Lane Bridge problem, an application of Mutual Exclusion in a Distributed System