Added terrain functionality

2d mode