Algorithms for Games