Added functionality for dropping pieces