Implement ability to push minecarts on curved rails

This is my first real code contribution to an open source project. I'm grateful for any advice!
Remove the spaces within the parentheses here and everywhere else they have been added.