Man declares love by solving 840 Rubik's cubes only to be rejected