updated HORSES.cpp