initial code - almost the same written for the last Ludum Dare. 95% of this code was written during a 48 hour sprint - not bad!