java brain not working