question: private boolean isOnEdge ( final int direction , final Point currentPoint ) { m_testPoint . setLocation ( currentPoint ) ; move ( m_testPoint , direction ) ; return m_testPoint . x == 0 || m_testPoint . y == 0 || m_testPoint . y == m_bufferedImage . getHeight ( this ) || m_testPoint . x == m_bufferedImage . getWidth ( this ) || isBlack ( m_testPoint ) ; }
target:  java.lang.boolean isOnEdge(java.lang.int, java.awt.Point) Checks to see if the direction we're going is on the edge. At least thats what I can understand from this.