I think I fixed it. I had to comment out #define MESH_BED_LEVELING and uncomment #define AUTO_BED_LEVELING_BILINEAR.

Also #define GRID_MAX_POINTS_X and #define GRID_MAX_POINTS_Y are set to 5 which makes it probe 25 times which may be excessive and more time consuming but I am going to leave it at that for now. With my old motherboard it was set to 3x3.