use allegro to implement horse game