Working code for searchGame

added some tests also for searchGame