adding games functionality