Changed how the program works internally. Cleaned up many things, structures are now used, removed redundant code. Line 1 now contains displayed puzzle, to make it easier to change puzzle. There is support for multiple puzzle but only displays first puzzle currently. Just need to come up with a design for choosing puzzle number. I may also add random puzzles too. Will be easy to add but pictures wont make sense (obviously).
Update
added ability to choose levels with l and r
added ability to change size of puzzles in edit mode with l and r
Currently there are only 3 puzzles, you can add more by adding to the puzzledata function. Start after 3rd
function puzzledata()
//start leveldata
//.... (data for prev. Levels)
puzzle[4].data=[31,17,17,17,31]
puzzle[4].size=5
//end leveldata
return void()
Adding the above code would make a square using a 5x5 grid. The data is obtained using editmode and represents the value on right side of each row starting from top row seperated by commas