add game logic

wrong in serch