Finalized morse script, it should now work as intended