how to implement games