Prototype of a basketball match engine in ruby