How does the algorithm behind Aviator Game work?