added java search in snake model