initial code and piece movements