Add logic for moving lef, right, up and down

Make the refreshed grid sent back to the client