Started adding some primitives. Fixed the find_available_moves function.