server logic fixes, figure layer on drag fixed, move figures on click implemented