castling working now. tweaked some implementation off css positioning. still not satisfied. frustrating day.
decided to make pathDetails into a constructor. refactored some code. all tests passing though pawn promotion not implemented yet.
all tests passing and now including tests for whether a piece has been capture or not. pawn promotion still unverified.
changing stuff around and relabling. working on pawn promotion. committing before more changes
swiched out id, newId for position, newPosition. Much better that way.