if piece is attacked in its home, homeNumber is decremented
if home is full, checkSpaces checks for possible move off board, changes showOffBoardBlue/Green variable to true, and green square shows in HTML