Did several changes

Did several changes, added an eventhandeler for window resizes, lifted out the drawing of pieces into it's own function in order to enable us to redraw them might still need som adjustments