Basic Engine implementation using a random dice