Some more game logic (TODO: calculate probabilities and fill the probabilities array)