Added Square array

Added 64-int array to the Board struct to facilitate quickly determining which piece occupies a given square.
Modified existing code to utilize this array and keep it up to date.
Also cleaned up some existing code, removed unused code, and renamed variables.