Fix the alley synchronization for same directions and move the barrier
off function to shutdown
Merge branch 'master' of https://github.com/prasopes/02158-assignment