first version of placing a piece finished. need to test edge cases.