Bejeweled-like game (C and Allegro)