Fixing bugs with snake length and dismiss button