search function...not working

illegal state exception, Games.java line 101