made game responsive to resize