Code for Ludum Dare 29 submission