Random Forest Algorithm Code In Python For Snake