added king. changed piece functions to void