changed bottom of the board detection and landed pieces drawing's logic for better readability