fixed bug with not being able to place pieces properly.