wrote King class, needs to be tested along with other pieces