Chess piece logic