Beat Shapes: Patch #2 Fixed Integer Overflow and instant death

Fixed Integer Overflow and Related Logic Bugs Sub-headline: Fixed the issue where values would turn negative or cause "Instant Death" .