legal chess

known bugs / wont fix for now: full and half moves use a max value of 255