added end modal, fixed gamesize bug