Writing custom sword levels