Castling logic was allowing one square to be occupied for each possible type.
Created a computer v. computer game that uses a simple evaluation function along with the minimax algorithm to select the next move on each turn.