Fixed error of reaching end of non-void function

I basically added some else’s so that no matter what, something is
returned in diagonal moved straight moves.