I could use two new functions for gamestate. One that detects if a piece exists anywhere on the board, and another that removes a piece.