Rook legal moves function made + naming convention used.