Lots of stuff working now!

Game logic largely completed.