added window resizing, now you can resize the window and the cards get rearranged