Added some tests, fixed a bug with king's legal moves and rearranged some files.