Place flag only if the position is hidden
Implement isHidden method
Make mouse clicks work while moving the mouse
Compile for Java 7