constructor: Constructs a new King piece, with color
based on the parameter z(white for true, black for false) and name
based on the parameter x and the Icon(parameter r).
constructor: Constructs a new Knight piece, with color
based on the parameter z(white for true, black for false) and name
based on the parameter x and the Icon(parameter r).