Fixed riley's changes so they work

still need to implement black pieces moving
added some comments to clarify