Added functionality for moving around pieces,
fixed some minor errors