algorithm prescription game