Removed hard coding of some variables and added better losing condition.
Added increasing speed over time