Can't click to a black piece in a java chess game

The source
After I move a piece I can’t select a black piece after moving a white piece