added betting system, fixed random with seed + small fixes