Fixed bug in piece promotion