finish write decision function
Merge branch 'master' of https://github.com/ludwiksh/Marksimos