added alert box, fixed delete piece bug, little css