keypresses re-explode snake, moved layer generation to separate function